var mongoose  = require('mongoose')
var userSchema = new mongoose.Schema({
    "userId":String,
    "userName":String,
    "userPwd":String,
    "orderList":Array,
    "cartList":[
        {
        "productId":String,
        "productName":String,
        "salePrice":String,
        "productImage":String,
        "checked":String,
        "productNum":String
        }
    ],
    "addressList":Array
});
//第三个参数指定数据库名
module.exports = mongoose.model("User",userSchema);

